

cmake_minimum_required(VERSION 3.0)

project(video_xstack)

set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

add_definitions(-std=c++14 -g)

include_directories(/usr/include/c++/11)
include_directories(/usr/include)
include_directories(/usr/local/include)

include_directories(./)
include_directories(./../)
include_directories(./../base/)

link_directories(/usr/local/lib/)
link_directories(/usr/local/lib64/)

set(base_src_list ./)
aux_source_directory(./../base/ base_src_list)

set(unit_test_src_list ./)
aux_source_directory(./unit_test/ unit_test_src_list)

set(lib avutil swscale swresample avcodec avformat avfilter avdevice gtest)

add_executable(${PROJECT_NAME} main.cpp xstack_filter_format.cpp ${base_src_list} ${unit_test_src_list})

target_link_libraries(${PROJECT_NAME} ${lib})
